{extend name="public/base"/}
{block name="body"}
<title>订单列表</title>
<style type="text/css">
	.pagelist ul li{display:inline-block;width:auto;height:20px;text-align:center;padding:0 5px;}
	.pagelist ul li a{width:auto;height:20px;}
	.pagelist ul li.active{background-color:#ccc !important;color:#fff;}
	.selecttmd{width:80px;height:30px;border:solid 1px #ddd;}
</style>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 订单管理 <span class="c-gray en">&gt;</span> 订单列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<table class="table table-border table-bordered table-bg mt-20">
		<thead>
			<tr>
				<th scope="col" colspan="13">订单列表<span class="r">共有数据：<strong>{$count}</strong> 条</span></th>
			</tr>
			<tr class="text-c">
				<th width="40">ID</th>
				<th width="100">订单号</th>
				<!-- <th width="100">身份证号</th> -->
				<th width="100">产品</th>
				<!-- <th width="50">代理商</th>
				<th width="50">分销商</th> -->
				<th width="50">单价</th>
				<th width="50">购买数量</th>
				<th width="100">参数</th>
				<th width="100">时间</th>
			</tr>
		</thead>
		<tbody>
			{foreach $list as $key=>$value }
			<tr class="text-c" id="val_{$value.id}">
				<td>{$value.id}</td>
				<td><a style="color:#6db3e3;" onclick="order_hx_detail('核销详情','{:url('order_hx_detail')}?id={$value.id}',{$value.id},'800','500')">{$value.ordernosub}</a></td>
				<!-- <td>{$value.id_card}</td> -->
				<td>{$value.title}</td>
				<!-- <td>{$value.agent_name}</td>
				<td>{$value.distributor_name}</td> -->
				<td>{$value.price}</td>
				<td>{$value.pay_number}</td>
				<td>{$value.params}</td>
				<td>{:date('Y-m-d H:i:s',$value.time)}</td>
			</tr>
      		{/foreach}
		    <tr>
		        <td colspan="13">
			        <div class="pagelist"  style="text-align: right;">
			        	{$list->render()|raw}
			        </div>
		        </td>
		    </tr>
		</tbody>
	</table>
</div>

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="/static/lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="/static/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
function order_hx_detail(title,url,id,w,h){
	layer_show(title,url,w,h);
}
$(".pagelist").on("click",".pagination a",function(){
  var url=$(this).attr("href");
  getPage(url);
  return false;
});
function getPage(url)
{
  $.get(url, function(data){
    $("body").html(data);
  });
}
</script>
{/block}